<template>
  <el-card class="card-box" shadow="hover">
    <div class="name">{{ classInfo.name }}</div>
    <div class="info">
      <div class="teacher">{{ classInfo.head_teacher_name }}</div>
      <div class="num">{{ classInfo.student_count }}</div>
    </div>
  </el-card>
</template>

<script setup>
// import { defineProps } from 'vue';

defineProps({
  classInfo: {
    type: Object,
    default: () => ({})
  }
})

</script>

<style lang="scss" scoped>
.card-box {
  .name {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
  }
  .info {
    margin-top: 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    .teacher {
      font-size: 16px;
      font-weight: 600;
    }
    .num {
      font-size: 24px;
      font-weight: 700;
      color: #409EFF;
    }
  }
}
</style>